#ifndef CTCPSOCKET_H
#define CTCPSOCKET_H

#include <QTcpSocket>

/// thin wrapper around QTcpSocket:
class CTcpSocket: public QTcpSocket
{
	Q_OBJECT
public:
	CTcpSocket(QObject *p =0);

protected slots:
	// this is called when the socket gets an error. It doesn't do anything interesting, just prints out the message.
	void onError(QAbstractSocket::SocketError);

};

#endif // CTCPSOCKET_H
